package com.gscitysfy.cus.drain.modules.duty.entity;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 *
 * </p>
 *
 * @author admin
 * @since 2022-03-28 15:38:59
 */
@Data
@TableName("moper_duty_rl_log")
public class MoperDutyRlLog implements Serializable {

    private static final long serialVersionUID = 1L;
    @TableId
    private String coamKid;

    /**
     * 日志标题
     */
    private String coamDutyTitle;

    /**
     * 日志内容
     */
    private String coamLogRecord;

    /**
     * 当班负责人（值班人员ID）
     */
    private String coamDutyPersonId;

    /**
     * 值班日期
     */
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date coamDutyDate;

    /**
     * 班次ID
     */
    private String coamClassessId;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date coamAddtime;

    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JSONField(format = "yyyy-MM-dd")
    private Date coamUptime;

    private String coamCreator;

    private String coamModifier;

    private Integer coamUsable;

    /**
     * 开始时间
     */
    private String coamClassessStarttime;

    /**
     * 结束时间
     */
    private String coamClassessEndtime;

    /**
     * 数据状态
     */
    private String coamClassessStatus;


    /**
     * 备注
     */
    private String coamLogRemark;


    /**
     * 运行状态
     */
    private String coamRunStatus;

    /**
     * 班次名称
     */
    @TableField(exist = false)
    private String classessName;


    /**
     * 人员名称
     */
    @TableField(exist = false)
    private String peopleName;

    /**
     * 人员类别
     */
    @TableField(exist = false)
    private String peopletype;


    /**
     * 人员表主键id
     */
    @TableField(exist = false)
    private String pid;

    /**
     * 人员姓名
     */
    @TableField(exist = false)
    private String personUsername;

    /**
     * 审批意见
     */
    private String coamApproveOpinion;

}
